<!--{include wap_header}-->
<script src="/static/js/jquery-1.3.2.js" type="text/javascript"></script>
<h2>项目名称</h2>
<p>{$team['title']}</p>
<p>数量：<!--{if $team['per_number']}-->{$team['per_number']}件<!--{else}-->不限<!--{/if}-->
<p>单价：{$currency}${moneyit($team['team_price'])}</p>
<form action="buy.php?id={$team['id']}" method="post" >
<input type="hidden" name="id" value="{$team['id']}" />
<!--{if $team['delivery']=='express'}-->
                <!--{loop $express $index $one}-->
                <tr>
                    <td class="deal-buy-desc">{$one['name']}</td>
                    <td class="deal-buy-quantity">
                    	<input type="radio" class="express-price" name="express_price" value="{$one['relate_data']}" title="{$one['id']}" <!--{if !$order['express_id'] && $index == 0 }-->checked="checked"<!--{else if $order['express_id'] == $one['id'] }-->checked="checked"<!--{/if}--> /></td>
                    <td class="deal-buy-multi"></td>
                    <td class="deal-buy-price"><span class="money">{$currency}</span><span>{$one['relate_data']}</span></td>
                    <td class="deal-buy-equal"></td>
                    <td class="deal-buy-total"></td>
                </tr>
				<!--{/loop}-->
				<input type="hidden" id="express-id" name="express_id" value="{$one['express_id']}">
<!--{/if}-->

<h2>购买选项</h2>
<p>数量<span style="color:red;">(*)</span></p>
<p><input type="text" name="quantity" value="1" ${$team['per_number']==1 ? 'readonly':''} /></p>

<!--{if $team['delivery']=='express'}-->
<p>收件人<span style="color:red;">(*)</span></p>
<p><input type="text" name="realname" id="settings-realname" class="f-input" value="{$login_user['realname']}" /></p>
<p>手机号<span style="color:red;">(*)</span></p>
<p><input type="text" name="mobile" id="settings-mobile" class="number" value="{$login_user['mobile']}" maxLength="11" /></p>
<p>邮政编码<span style="color:red;">(*)</span></p>
<p><input type="text" name="zipcode" id="settings-mobile" class="number" value="{$login_user['zipcode']}" maxLength="6" /></p>
<p>收件地址<span style="color:red;">(*)</span></p>
<p><input type="text" name="address" id="settings-address" class="f-input" value="{$login_user['address']}" /></p>
<!--{/if}-->

<p>订单附言</p>
<p><textarea name="remark" style="width:200px;height:40px;padding:2px;">${htmlspecialchars($order['remark'])}</textarea></p>

<p><input type="hidden" name="id" value="{$order['id']}" /><input type="submit" class="formbutton" name="buy" value="确认无误，购买"/></p>

</form>
<script language="javascript">
$(document).ready(function(){
    express_which();
    $('.express-price').click(function(){
	    express_which();	
	});
	function express_which() {
	$('#express-id').val($('.express-price:checked').attr('title'));
   }
})
</script>
<!--{include wap_footer}-->
